﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using O1.Kernel.Data;

namespace O1.Kernel.IO.Storage
{
    internal class EdgeEnumerator : StorageReader<Edge>
    {
        public EdgeEnumerator(
            BlockArray<byte[]> storage,
            long startIndex,
            TransactionToken transaction)
            : base(storage, startIndex, transaction)
        {
        }

        protected override int RecordSize
        {
            get
            {
                return Edge.Size;
            }
        }

        protected override Edge ReadCurrent(byte[] buffer, int offset)
        {
            return Edge.Read(buffer, offset);
        }
    }
}
